package com.firmboy.proxy.jdk.demo1;

import org.junit.Test;

/**
 * @author firmboy
 * @create 2018-06-19 下午1:24
 **/
public class ProxyTest {


    @Test
    public void test(){

        ProxyFactory factory = new ProxyFactory(new UserServiceImpl());
        UserService proxy = (UserService) factory.getProxy();

        String tom = proxy.sayHello("tom");

        System.out.println(tom);


    }

}
